import http from "@/utils/http";
//获取表格数据列表
export const getList = (params) => {
  return http.get("/pro/complete/list", params);
};
//获取数据统计
export const getCount = (params) => {
  return http.get("/pro/complete/groups", params);
};
//新增
export const addRecords = (params) => {
  return http.post(`/pro/complete`, params);
};
//编辑
export const editRecords = (params) => {
  return http.put(`/pro/complete`, params);
};
//详情
export const recordsDetail = (id) => {
  return http.get(`/pro/complete/${id}`);
};
//删除
export const delRecords = (id) => {
  return http.del(`/pro/complete/${id}`);
};
//导出
export const exportRecords = (params = {}) => {
  return http.post("/pro/complete/export", params, {
    responseType: "blob",
  });
};
